Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactor: Mode.from_name, tests for __main__ #254

Merged
merged 8 commits into from
Apr 14, 2024
Merged

Refactor: Mode.from_name, tests for __main__ #254

merged 8 commits into from
Apr 14, 2024

Conversation

fohrloop
Copy link
Owner

@fohrloop fohrloop commented Apr 14, 2024

Instead of create_mode, use Mode.from_name classmethod.

  • refactor: the tests for main:main. Made them simpler to read. This was
    really initiated by the create_mode -> Mode.from_name change. Could not make
    the tests pass after such a simple change, so decided to refactor the tests
    to make them easier to maintain.

Bonus

  • fix: version string printed out correctly in wakepy CLI even with dev version
  • add logging to registry

@fohrloop fohrloop changed the title Refactor Refactor: Mode.from_name, tests for __main__ Apr 14, 2024
@fohrloop fohrloop merged commit 9cdf218 into dev Apr 14, 2024
12 checks passed
@fohrloop fohrloop deleted the refactor branch April 14, 2024 21:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant